package com.flycun.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.flycun.feign.UserServiceRemote;

@RestController
public class OrderController {
//	@Autowired
//	private RestTemplate restTemplate;

	@RequestMapping("/order/user/{id}")
	public Object getUser(@PathVariable("id") int id) {
		Object object=userServiceRemote.getCustomer(id);
		return object;
	}
	
	@Autowired
    UserServiceRemote userServiceRemote;
	

}